package com.zkthink.ceres.applet.pcVehicles.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zkthink.ceres.applet.pcVehicles.domain.entity.PcVehicles;
import com.zkthink.ceres.applet.pcVehicles.domain.vo.PcVehiclesServerVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;
import java.util.List;

/**

@Author cmz
@Date 2024-05-06 9:16
*/
public interface PcVehiclesMapper extends BaseMapper<PcVehicles> {
    List<PcVehiclesServerVo> selectByServerId(@Param("serverId") Long id);

    List<PcVehiclesServerVo> selectByServerIdAndPrice(@Param("serverId")Long serverId, @Param("costs")BigDecimal costs);

    List<PcVehiclesServerVo> selectByProductIdAndPrice(@Param("productId")Long productId, @Param("costs") BigDecimal costs);
    
    PcVehicles selectByUserId(Long mid);

    PcVehicles selectByIdPcVehicles(Long id);
}